/**
 * Created by Administrator on 2015/1/25.
 */
var sendText = function () {
    var text = $('#text').val();
    $.ajax({
        type: "get",
        url: "/ghost/test?xml=" + text,
        success: handleResponse,
        dataType: "json"
    });
}


var handleResponse = function (data) {
    var result = data.result
    console.log(result);
    $('#result').val(result);
}